package com.jiazhong.basic.shuxin.design.适配器模式;

public class Phone {

    public void charge(PhoneCharge phoneCharge) {
        int output = phoneCharge.output5v();
        if (output == 5) {
            System.out.println("开始给手机充电");
            return;
        }
        System.out.println("电压不符合要求");
    }
}
